﻿using MyFramework.Common.Attributes;
using MyFramework.Core;

namespace MyFramework.Test.Shell
{
    /// <summary>
    /// Shell module
    /// </summary>
    [ModuleOrder(1)]
    public class ShellModule : ModuleBase
    {
        /// <summary>
        /// Gets the width.
        /// </summary>
        /// <returns></returns>
        public override double GetWidth()
        {
            return 100;
        }

        /// <summary>
        /// Gets the heigth.
        /// </summary>
        /// <returns></returns>
        public override double GetHeigth()
        {
            return 100;
        }

        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public override void Initialize()
        {
            this.InizializeElement<ShellController, ShellViewModel, ShellView>("Shell", "Shell view");
        }
    }
}
